const Koa = require("koa");
const { koaBody } = require("koa-body");
const cors = require("koa-cors");
const router = require("./app/router");
// const swagger = require('koa-swagger');

const app = new Koa();

app.use(koaBody());
app.use(cors({ origin: "*" }));

app.use(router);

app.listen(8000, () =>
  console.log("server listening on to http://localhost:8000")
);
